public class cylinder extends liti1 {
    double r,h;
    cylinder(double r,double h){
    	this.r=r;
    	this.h=h;
    }
	public double getArea() {
		return 3.14*r*r*2+2*3.14*r*h;
	}
	public double getvolume() {
		return 3.14*r*r*h;
	}
}
